home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / progjour / 1991 / 06 / alib / movefptr.asm < prev    next >
Assembly Source File  |  1991-06-25  |  318b  |  28 lines

  1.     include    asm.inc
  2.  
  3.     public    move_file_pointer
  4.  
  5.     .code
  6.     extn    ms_dos
  7.  
  8.  
  9. ;;    move file pointer
  10. ;
  11. ;    entry    BX    file handle
  12. ;        DX AX    file position
  13. ;    exit    Cf    if error
  14. ;    uses    AX
  15. ;
  16. move_file_pointer proc
  17.     push    cx
  18.     mov    cx,dx
  19.     mov    dx,ax
  20.     mov    ax,4200h
  21.     call    ms_dos
  22.     pop    cx
  23.     ret
  24. move_file_pointer endp
  25.  
  26.  
  27.     end
  28.